package name.matthewgreet.example3.view; import name.matthewgreet.example3.vo.CountryDTO; public class CountryDisplay { private CountryDTO record; private String id; private String code; private String name; private String notes; public CountryDisplay(CountryDTO country) { this.record = country; if (country != null) { id = Integer.toString(record.getId()); code = record.getCode(); name = record.getName(); notes = record.getNotes(); } else { id = ""; code = ""; name = ""; notes = ""; } } public CountryDTO getRecord() { return record; } public String getId() { return id; } public String getCode() { return code; } public String getName() { return name; } public String getNotes() { return notes; } }